import request from '@/utils/request'

// 查询充电站列表
export function listBusStation(query) {
  return request({
    url: '/bus/busStation/list',
    method: 'get',
    params: query
  })
}

// 查询充电站详细
export function getBusStation(stationId) {
  return request({
    url: '/bus/busStation/' + stationId,
    method: 'get'
  })
}


// 查询充电站详细
export function syncStationData() {
  return request({
    url: '/bus/busStation/syncStationData',
    method: 'get'
  })
}

// 新增充电站
export function addBusStation(data) {
  return request({
    url: '/bus/busStation',
    method: 'post',
    data: data
  })
}

// 修改充电站
export function updateBusStation(data) {
  return request({
    url: '/bus/busStation',
    method: 'put',
    data: data
  })
}

// 删除充电站
export function delBusStation(stationId) {
  return request({
    url: '/bus/busStation/' + stationId,
    method: 'delete'
  })
}
